#!/bin/bash
OK=0
WARN=1
CRITICAL=2
UNKNOWN=3
PATH="/bin:/sbin:/usr/bin:/usr/sbin"

Tsvctm=`sar -d 1 4 |grep Avera |sed '1d'|awk '{if($9 > 300) print $9}' |sed -n 1p`
if [ T"$Tsvctm" != T ]
then
        echo "DISK IO svctm is $Tsvctm maybe error"
        exit $CRITICAL
else
        echo "DISK IO svctm is $Tsvctm  OK"
        exit $OK

fi
